#define_property(SOURCE PROPERTY my_src_prop BRIEF_DOCS "bd" FULL_DOCS "fd")
define_property(SOURCE PROPERTY my_src_prop INHERITED BRIEF_DOCS "bd" FULL_DOCS "fd")
#set_property(SOURCE "${PROJECT_SOURCE_DIR}/sub/sub.c" PROPERTY my_src_prop "my_src_prop value")
#set_property(DIRECTORY "${PROJECT_SOURCE_DIR}/sub" PROPERTY my_src_prop "my_src_prop value by sub dir")
#set_property(DIRECTORY "${PROJECT_SOURCE_DIR}" PROPERTY my_src_prop "my_src_prop value by source dir")
set_property(GLOBAL PROPERTY my_src_prop "my_src_prop value by global")

get_source_file_property(var "${PROJECT_SOURCE_DIR}/sub/sub.c" my_src_prop)
message(STATUS "my_src_prop = ${var}")
get_property(var1 SOURCE "${PROJECT_SOURCE_DIR}/sub/sub.c" PROPERTY my_src_prop)
message(STATUS "my_src_prop = ${var1}")
